Skip to content

fix(tui): auto-dismiss skill loaded notices after 3 seconds#11

Merged
jkyberneees merged 1 commit into
mainfrom
fix/skill-notices-auto-dismiss-3s
Jul 26, 2026
Merged

fix(tui): auto-dismiss skill loaded notices after 3 seconds#11
jkyberneees merged 1 commit into
mainfrom
fix/skill-notices-auto-dismiss-3s

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Transient notices (skill loaded, memory, signal, subagent logs) were piling up because every new event reset the single expiry sweep timer.

This change gives each transient notice its own 3-second sweep, so expired notices are pruned independently instead of waiting for a quiet gap.

Changes:

  • Reduce noticeTTL from 5s to 3s.
  • Always prune on noticeExpireMsg; drop the stale-sequence guard that delayed expiry when newer notices arrived.

Verified with go test -race -count=1 ./internal/tui/... and go vet ./... && go build ./....

Transient notices (skill loaded, memory, signal, subagent logs) were
piling up because every new event reset the single expiry sweep timer.
Now each transient notice gets its own 3-second sweep, so expired
notices are pruned independently instead of waiting for a quiet gap.

- Reduce noticeTTL from 5s to 3s.
- Always prune on noticeExpireMsg; drop the stale-sequence guard that
  delayed expiry when newer notices arrived.
@jkyberneees
jkyberneees merged commit ba4d278 into main Jul 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant